<!-- 报修管理列表 -->
<template>
	<div class="app-container" id="ElementId">
		<div>多选:  
			<el-button type="primary" @click="open('all','checkbox')">选择部门、成员</el-button> 
			<el-button type="primary" @click="open('department','checkbox')">选择部门</el-button>
			<el-button type="primary" @click="open('user','checkbox')">选择成员</el-button>
		</div>
		<div style="margin-top: 30px;">单选:
			<el-button type="primary" @click="open('all','radio')">选择部门、成员</el-button> 
			<el-button type="primary" @click="open('department','radio')">选择部门</el-button>
			<el-button type="primary" @click="open('user','radio')">选择成员</el-button>
		</div>
		<qywx-ele ref="qywx" @submit="onSubmit"></qywx-ele>
		 <!-- <el-link :href="url">默认链接</el-link> -->
	</div>
</template>

<script>
import qywxEle from '@/components/addressList/ele.vue';
export default {
	name: 'qywx',
	components: { qywxEle },
	data() {
		return {
			type:'all',
			ele:'radio', //radio ，checkbox
			isQywx:false,
			url:'',
			appid:'ww777a393abb585107',
			// redirect_uri:'qywx.frp.shandian001.com',
			redirect_uri:'https://admin.zhilinyun.net',
			
		};
	},
	mounted() {
		// this.url = 'https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=ww777a393abb585107&redirect_uri=http%3A%2F%2Fwww.oa.com&state=web_login@gyoss9&usertype=admin'
		this.url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww777a393abb585107&redirect_uri='+this.redirect_uri+'&response_type=code&scope=SCOPE&state=STATE#wechat_redirect'
		// https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww777a393abb585107&redirect_uri=qywx.frp.shandian001.com&response_type=code&scope=SCOPE&agentid=AGENTID&state=STATE#wechat_redirect
	console.log(this.url)
	},
	methods: {
		open(type,eleType) {
			this.$refs.qywx.open(type,eleType)
		},
		onSubmit(ids) {
			console.log(ids)
		}
	}
};
</script>
<style lang="scss" scoped></style>

<style lang="scss"></style>
